import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;

public class Time extends GregorianCalendar {
	
	private static GregorianCalendar calendar;
	private static SimpleDateFormat simple;
	
	private static String setting;

	public static final String getCurrentTime() {
		calendar = new GregorianCalendar();
		simple = new SimpleDateFormat("hh:mm:ss");
		setting = calendar.get(AM_PM) == 0 ? " AM" : " PM";
		return "[".concat(simple.format(calendar.getTime())).concat("] ");
	}
}